/////////////////////////////////////////////////
//
//		COPYRIGHT@2008,all right reserved by ax.lyb.lei
//
//		FILE	: BaseFutureMisc.h
//
//      PURPOSE : MISC functions set
//
//      AUTHOR  : AX
//
//      DATE    : 2008/10/14
//
////////////////////////////////////////
#ifndef __BASE_FUTURE_MISC_H__
#define __BASE_FUTURE_MISC_H__
#include <windows.h>
namespace BaseFutureMisc
{
	BOOL IsWinNT();
	BOOL IsWin95();
	int  OSVersion();
	unsigned int  VersionMajor();
	unsigned int  VersionMinor();

	void SetRunningAsService(BOOL bService);
	BOOL IsRunningAsService();

	void KillScreenSaver();
	BOOL SelectHDESK(void* hDesk);
	BOOL SelectDesktop(const char* name);
	BOOL GetCurrentUser(char* buf,int nSize);

	BOOL SelectInputWinStation();
	void SelectHomeWinStation();
	BOOL InputDesktopSelected();

	BOOL SimulateCtrlAltDel();

	BOOL LockWorkstation();

	void SessionFix();

	class DynamicLib
	{
	public:
		DynamicLib(const char* );
		~DynamicLib();

	public:
		void* GetProcAddress(const char* pszFunName);

	private:
		HMODULE  m_hMod;
	};
};
#endif